package com.game.server; 

import java.io.IOException; 
import java.net.ServerSocket; 
import java.net.Socket; 

/** 
* 主程序 
* 
* @author Administrator 
* 
*/ 
public class MainServer { 

	public static void main(String[] args) { 
		ServerSocket ss = null; 
		try { 
			ss = new ServerSocket(9443); 
		} catch (Exception e) { 
			e.printStackTrace(); 
		} 
		System.out.println("服务器开启.........."); 
		while (true) { 
			try { 
				Socket so = ss.accept(); 
				if (so == null) { 
					continue; 
				} 
				System.out.println("接受到一个请求。。。"); 
				new DoSocket(so).start(); 
			} catch (IOException e) { 
				// TODO Auto-generated catch block 
				e.printStackTrace(); 
			} 
		} 
	} 
} 

//// 
